package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 
 */
@Data
@TableName(value = "cms_user_balance")
@Table(name = "cms_user_balance", comment = "用户余额")
public class CmsUserBalance implements Serializable {
    /**
     * 用户余额ID
     */
    @TableId
    @Column(type= MySqlTypeConstant.BIGINT, comment = "用户余额ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long balanceId;

    /**
     * 用户ID
     */
    @Column(comment = "用户ID")
    private Long baseUserId;

    /**
     * 余额
     */
    @Column(comment = "余额", defaultValue = "0.00", type = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    private BigDecimal balance;

    /**
     * 冻结金额
     */
    @Column(comment = "冻结金额", defaultValue = "0.00", type = MySqlTypeConstant.DECIMAL, length = 18, decimalLength = 2)
    private BigDecimal frozenAmount;

    private static final long serialVersionUID = 1L;


}